//==============================================================================
#include "CCamera.h"

//==============================================================================
CCamera CCamera::CameraControl;

//==============================================================================
CCamera::CCamera() {
    X = 0;
    Y = 0;
}

//==============================================================================
void CCamera::Translate() {
    glTranslatef(-X, -Y, 0);
}

//==============================================================================
void CCamera::SetPosition(int X, int Y) {
    this->X = X;
    this->Y = Y;
}

//------------------------------------------------------------------------------
void CCamera::SetCenter(int X, int Y) {
    this->X = X - (WWIDTH / 2);
    this->Y = Y - (WHEIGHT / 2);
}

//==============================================================================
